import { AuthApiCreateDto } from "./dto/auth.api.create.dto";

export interface IAuthPassword {
  salt: string;
  passwordHash: string;
}

export interface IAuthCaptchat {
  captchaId: string;
  captchaData: string;
  captchaValue?: string;
}

export interface IAuthPayloadOptions {
  loginDate: Date;
}

export interface IAuthApiPayload {
  _id: string;
  key: string;
  name: string;
  description: string;
}

export interface IAuthApiCreate extends AuthApiCreateDto {
  key?: string;
  secret?: string;
  passphrase?: string;
}

export interface IAuthApiRequestHashedData {
  key: string;
  timestamp: number;
  hash: string;
}
